package com.base.activity;

import android.app.Activity;
import android.content.Context;

import dagger.Module;
import dagger.Provides;

/**
 * Created by gml on 17/1/6.
 */

@Module
public class ActivityModule {
    private final Context activity;

    public ActivityModule(Activity activity) {
        this.activity = activity.getApplicationContext();
    }


    @ActivityScope
    @Provides
    Context activity() {
        return this.activity;
    }
}


